---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: writer-role
rules:
- apiGroups:
  - ""
  - apps
  - rbac.authorization.k8s.io
  - extensions
  resources:
  - clusterroles
  - clusterrolebindings
  - configmaps
  - secrets
  - pods
  - services
  - deployments
  - daemonsets
  - persistentvolumes
  - persistentvolumeclaims
  - roles
  - rolebindings
  - serviceaccounts
  verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: writer-binding
subjects:
- kind: Group
  name: prod@pixielabs.ai
roleRef:
  kind: ClusterRole
  name: writer-role
  apiGroup: rbac.authorization.k8s.io
